<!DOCTYPE html>
<html>
 <head>
   <title>2048</title>
   <meta charset="utf-8">
   <script type="text/javascript" src="jquery-1.11.3.min.js"></script>
   <link rel="stylesheet" type="text/css" href="style/main.css">
	 <link rel="shortcut icon" href="style/favicon.ico">
	 <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, maximum-scale=1, user-scalable=no, minimal-ui">
	 <script src="animation.js"></script>
	 <script src="requests.js"></script>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-65311021-1', 'auto');
  ga('send', 'pageview');
</script>

 </head>
 <body>

 <div class="container">
	<div class="heading">
		<h1 class="title">2048</h1>
		<div class="scores-container">
			<div class="score-container">0</div>
			<div class="best-container">0</div>
		</div>
	</div>

	<div class="above-game">
		<p class="game-intro">Join the numbers and get to the <strong>2048 tile!</strong></p>
		<a class="restart-button" onclick="newGame();getGameState();getTiles();getScore();">New Game</a>
	</div>

	<div class="game-container">
		<div class="game-message">
			<p></p>
			<div class="lower">
				<a class="keep-playing-button">Keep going</a>
				<a class="retry-button" onclick="newGame();getGameState();getTiles();getScore();">Try again</a>
			</div>
		</div>

		<div class="grid-container">
			<div class="grid-row">
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
			</div>
			<div class="grid-row">
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
			</div>
			<div class="grid-row">
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
			</div>
			<div class="grid-row">
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
				<div class="grid-cell"></div>
			</div>
		</div>

		<div class="tile-container">

		</div>
	</div>

	<p class="game-explanation">
		<strong class="important">How to play:</strong> Use your <strong>arrow keys</strong> to move the tiles. When two tiles with the same number touch, they <strong>merge into one!</strong>
	</p>
	<hr>
	<p>
		This game is clone of <a href="https://gabrielecirulli.github.io/2048/" target="_blank">2048</a> from Gabriele Cirulli. It uses server to store data and process game logic. AJAX is used to transfer data between server and client. <a href="https://github.com/AnatoliiStepaniuk/2048" target="_blank">GitHub page</a> of this project.
	</p>
</div>
 </body>
</html>